<div class="container">
    <!-- Main hero unit for a primary marketing message or call to action -->
    <div class="row">
        <div class="span4">
            <h3>10 Materi terbaru</h3>
            <ul>
                <?php foreach ($new as $data): ?>
                    <li><i class="icon-book"></i> <?php echo anchor('materi/detail/' . $data->hash, $data->raw_name . ' ( ' . $data->download . ' )') ?></li>
                <?php endforeach; ?>
            </ul>
        </div>
        <div class="span4">
            <h3>10 Top Download Materi</h3>
            <ul>
                <?php foreach ($top as $data): ?>
                    <li><i class="icon-book"></i> <?php echo anchor('materi/detail/' . $data->hash, $data->raw_name . ' ( ' . $data->download . ' )') ?></li>
                <?php endforeach; ?>
            </ul>
        </div>
        <div class="span4">
            <h3>10 Top Download Mata Kuliah</h3>
            <ul>
                <?php foreach ($top_matkul as $data): ?>
                    <li><i class="icon-book"></i> <?php echo anchor('materi/matakuliah/' . $data->matkul, $data->matkul) ?></li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="span12">
            <div class="page-header">
                <h3>Materi berdasarkan mata kuliah</h3>
            </div>
            <ul class="the-icons clearfix">
                <?php foreach ($matkul as $data): ?>
                    <li><?php echo anchor('materi/matakuliah/' . $data->matkul, '<i class="icon-book"></i> ' . $data->matkul) ?></li>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>